﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Store.Manager.ERP.Application.Dtos
{
    public class OrganizationDto
    {
        [Display(Name = "组织编码"),Required(ErrorMessage = "{0}不能为空"),]
        public string Code { get; set; }
        [Display(Name = "组织名称"),Required(ErrorMessage = "{0}不能为空")]
        public string? Name { get; set; }
        public string? ParentCode { get; set; }
        public string? Address { get; set; }
        public string? ContactPerson { get; set; }
        [Display(Name ="联系方式"), Phone(ErrorMessage =@"{0}只能是手机号或者固定电话")]
        public string? ContactPhone { get; set; }
    }
}
